package com.example.tesis;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;
import android.widget.TextView;

public class MainActivity extends Activity
{	
	@Override
	protected void onCreate( Bundle savedInstanceState ) 
	{
		super.onCreate( savedInstanceState );
		setContentView( R.layout.activity_main );
		
	    ArrayAdapter<String> adapterMeses = new ArrayAdapter<String>(
	            this, android.R.layout.simple_spinner_dropdown_item, getResources( ).getStringArray( R.array.array_meses ) );

	    Spinner spinnerMeses = ( Spinner ) findViewById( R.id.spinner_meses );
	    spinnerMeses.setAdapter( adapterMeses );
	    
	    ArrayAdapter<String> adapterSemanas = new ArrayAdapter<String>(
	            this, android.R.layout.simple_spinner_dropdown_item, getResources( ).getStringArray( R.array.array_semanas ) );

	    Spinner spinnerSemanas = ( Spinner ) findViewById( R.id.spinner_semanas );
	    spinnerSemanas.setAdapter( adapterSemanas );
	    
	    TextView textGrabar = ( TextView )findViewById( R.id.button_grabar );
	    textGrabar.setCompoundDrawablesWithIntrinsicBounds( R.drawable.rec, 0, 0, 0 );
	    
	    TextView textHelp = ( TextView )findViewById( R.id.button_help );
	    textHelp.setCompoundDrawablesWithIntrinsicBounds( R.drawable.help, 0, 0, 0 );
	    
	    TextView textUser = ( TextView )findViewById( R.id.textViewUser );
	    textUser.setCompoundDrawablesWithIntrinsicBounds( R.drawable.user, 0, 0, 0 );
	    
	    TextView textUser1 = ( TextView )findViewById( R.id.textViewUser1 );
	    textUser1.setCompoundDrawablesWithIntrinsicBounds( R.drawable.user, 0, 0, 0 );
	    
	    TextView textUser2 = ( TextView )findViewById( R.id.textViewUser2 );
	    textUser2.setCompoundDrawablesWithIntrinsicBounds( R.drawable.user, 0, 0, 0 );
	    
	    TextView textUser3 = ( TextView )findViewById( R.id.textViewUser3 );
	    textUser3.setCompoundDrawablesWithIntrinsicBounds( R.drawable.user, 0, 0, 0 );
	    
	    TextView textUser4 = ( TextView )findViewById( R.id.textViewUser4 );
	    textUser4.setCompoundDrawablesWithIntrinsicBounds( R.drawable.user, 0, 0, 0 );
	    
	    TextView textUser5 = ( TextView )findViewById( R.id.textViewUser5 );
	    textUser5.setCompoundDrawablesWithIntrinsicBounds( R.drawable.user, 0, 0, 0 );
	    
	    TextView textUser6 = ( TextView )findViewById( R.id.textViewUser6 );
	    textUser6.setCompoundDrawablesWithIntrinsicBounds( R.drawable.user, 0, 0, 0 );
	    
	    TextView textUser7 = ( TextView )findViewById( R.id.textViewUser7 );
	    textUser7.setCompoundDrawablesWithIntrinsicBounds( R.drawable.user, 0, 0, 0 );
	    
	    TextView textArchUser = ( TextView )findViewById( R.id.textViewArchUser );
	    textArchUser.setCompoundDrawablesWithIntrinsicBounds( R.drawable.arch_user, 0, 0, 0 );
	    
	    
	    
	    TabHost tabs_semana = ( TabHost ) findViewById( R.id.dias_semana_tabs );
	    tabs_semana.setup();
	    
	    tabs_semana.addTab(tabs_semana.newTabSpec( "Lunes" ).setIndicator( "Lunes" ).setContent( R.id.analogClock1 ));
	    
        tabs_semana.addTab(tabs_semana.newTabSpec( "Martes" ).setIndicator( "Martes" ).setContent( R.id.textView2 ));
	    tabs_semana.addTab(tabs_semana.newTabSpec( "Miercoles" ).setIndicator( "Miercoles" ).setContent( R.id.textView3 ));
	    tabs_semana.addTab(tabs_semana.newTabSpec( "Jueves" ).setIndicator( "Jueves" ).setContent( R.id.textView4 ));
	    tabs_semana.addTab(tabs_semana.newTabSpec( "Viernes" ).setIndicator( "Viernes" ).setContent( R.id.textView5 ));
	    
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
